package com.ocom.common.entity.payconfig;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("xf_mqtt_operation")
public class EntityMqttOperation implements Serializable {
    private static final long serialVersionUID = -5372389575246682586L;
    /**
     * 主键自增
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Long comId;
    private Long pointId;
    private String pointName;
    private Long merchId;
    private String merchName;
    private String deviceNo;
    private String deviceName;
    private String orderNo;
    private Integer orderId;
    private String orderPsw;
    private Long pId;
    private String mqttDeviceNo;
    private Long mqttDeviceId;
    private String mqttDeviceName;
    private Integer mqttDeviceType;
    private String mqttDeviceModel;
    private String operateCode;
    private Long mqttDeviceSub;
    private Integer state;
    private Integer deviceStatus;
    private Integer errStatus;
    private Integer runStatus;
    private Integer price;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08")
    private Date payTime;
    private Integer type;
    private String authCode;
    private String remark;

    private Date endTime;

    private Integer endState;

    private Date beginTime;

    /**
     * 生成时间，计划日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08")
    private Date createTime;


    /**
     * 更新时间，最后使用日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08")
    private Date updateTime;

    private String monthValue;
}
